﻿using System;
using System.Threading.Tasks;
using Data.Entities;
using Data.IdentityEntities;
using Microsoft.AspNet.Identity;

namespace WebSite.Admin.Identity
{
    /// <summary>
    /// 用户自定义验证策略
    /// </summary>
    public class CustomUserValidator : UserValidator<SysUser, Guid>
    {
        public CustomUserValidator(AppUserManager mgr) : base(mgr)
        {
        }

        /// <summary>
        /// 重写验证
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        public override Task<IdentityResult> ValidateAsync(SysUser item)
        {
            return base.ValidateAsync(item);
        }
    }
}